<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:component="http://java.sun.com/jsf/composite/component">

    <ui:composition template="/resources/include/template.xhtml">

        <ui:define name="title">

            <h:outputText value="#{bundle.Bambole} - #{bundle.Organization}"/>

        </ui:define>

        <ui:define name="body">

            <h:form>

                <ui:include src="/resources/include/menu.xhtml"/> 

                <p:panel header="#{organizationController.selected.enabled ? '' : ' ~ '}
                         #{bundle.Organization} - #{bundle.View}
                         #{organizationController.selected.enabled ? '' : ' ~ '}">

                    <component:toolbar

                        refreshButtonDisabled="true"
                        saveButtonDisabled="true"

                        previousButtonDisabled="#{!organizationController.hasPreviousRecord}"
                        nextButtonDisabled="#{!organizationController.hasNextRecord}"             

                        returnButtonAction="#{organizationController.prepareList}"
                        previousButtonAction="#{organizationController.previousItem}"
                        nextButtonAction="#{organizationController.nextItem}"            
                        createButtonAction="#{organizationController.prepareCreate}"
                        editButtonAction="#{organizationController.prepareEdit}"
                        searchButtonAction="#{organizationController.prepareSearch}"
                        deleteButtonAction="#{organizationController.destroy}"

                        additionalInfoButtonRendered="true"

                        menuButtonRendered="true"

                        menuItem01Value="#{bundle.Person}"
                        menuItem01Action="#{organizationController.preparePersonList}"

                        menuItem02Rendered="true"
                        menuItem02Value="#{bundle.Address}"
                        menuItem02Action="#{organizationController.prepareAddressList}"

                        menuItem03Rendered="true"
                        menuItem03Value="#{bundle.Note}"
                        menuItem03Action="#{organizationController.prepareNoteList}"

                        /> 

                    <component:organization

                        enabledDisabled="true"
                        industryDisabled="true"            
                        nameDisabled="true"
                        legalNameDisabled="true"
                        taxId1Disabled="true"
                        taxId2Disabled="true"
                        taxId3Disabled="true"
                        webAddressDisabled="true"
                        alternateWebAddressDisabled="true"
                        emailAddressDisabled="true"
                        alternateEmailAddressDisabled="true"
                        telephoneNumberDisabled="true"
                        alternateTelephoneNumberDisabled="true"
                        additionalInfoDisabled="true"

                        />          

                </p:panel>        

            </h:form>

        </ui:define>

    </ui:composition>

</html>
